<?php

namespace App\Http\Requests\Api;


class UserRequest extends FormRequest
{


    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        switch ($this->method()){
            case "GET":{
                return [
                    "id"=>["required","exists:users"]
                ];
            }
        }
    }
}
